package com.pay.order.mapper;

import com.pay.order.pojo.TGoods;
import com.pay.order.pojo.TOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 28242
* @description 针对表【t_order(订单主表)】的数据库操作Mapper
* @createDate 2025-08-08 17:15:05
* @Entity com.pay.order.pojo.TOrder
*/
@Mapper
public interface TOrderMapper extends BaseMapper<TOrder> {

    int deductStock(@Param("goodId") Long goodId, @Param("quantity") Integer quantity);

    TGoods selectGoodById(Long goodId);
}




